package com.dt.tree.domain;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 组织结构树
 */
@Data
public class TreeNode {
	private String id;
	private String value;
	private String label;
	private String parentId;
	private List< TreeNode > children = new ArrayList<TreeNode>();;

	public void add( TreeNode node ) {
		children.add( node );
	}
}